package com.itheima.job;

import java.lang.reflect.Method;

public class Test03 {
    public static void main(String[] args) throws Exception{
        Class clazz = Class.forName("com.itheima.job.Student");
        Student stu = (Student) clazz.newInstance();
        Method method = clazz.getMethod("show", String.class);
        method.invoke(stu,"张三");
    }
}
